<template>
	<view class="content">
		<u-sticky>
			<dropdown ref="dropdown"></dropdown>
		</u-sticky>
		
		
		
			<view v-for="(item,index) in list" :key="index" class="list" @click="go_detail(item)">
				
				<view class="" >
					<view style="margin-top: 20rpx;">
						<u-image :src="item.cover" width="690" height="400" border-radius="20"></u-image>
					</view>
				    <view class="u-padding-20">
						<view class="u-flex u-row-between">
							<view class="u-line-2 " style="font-size: 32rpx;padding-right: 20rpx;">
								{{item.goodsName}}
							</view>
							<view>
								<u-icon name="heart"></u-icon>
								<text>{{item.num}}</text>
							</view>
						</view>
						<view style="color: #999;margin-top: 20rpx;">{{item.goodsName}}</view>
				    	
				    </view>
					
				</view>
				
			</view>
		


		
		<u-loadmore :status="initial.status" />



	</view>
</template>

<script>
	import dropdown from "../../components/dropdown.vue";
	import loader from '@/common/loadPage.js';
	export default {
		components: {
			dropdown
		},
		mixins: [loader],
		data() {
			return {
				value1: "",
				value2: "",
				value3: "",
				value4: "",
				list: [{
					image: "/static/logo.png",
					title: "11111"
				}, {
					image: "/static/logo.png",
					title: "11111"
				}, {
					image: "/static/logo.png",
					title: "11111"
				}],
				initial: {
					geturl: "/api/index/goods",
					parm: {
						goods_type: 1,
					},
					isPage: true
				}
			}
		},
		onLoad() {
          
			this.$refs.dropdown.nav = [{
				title: "户型",
				options: "",
				id: 1,

			}, {
				title: "风格",
				options: '',
				id: 0
			},{
				title: "面积",
				options: '',
				id: 0
			}, {
				title: "预算",
				options: '',
				id: 0
			}]
		},
		methods: {
            go_detail(item){
				uni.navigateTo({
					url:"./detail"
				})
			}
		}
	}
</script>

<style>
	page {
		background: #F8F8F8;
	}

	.list {
		background: #FFFFFF;
		width: 750rpx;
		margin-bottom: 20rpx;
		padding: 20rpx;
	}
</style>
